home *** CD-ROM | disk | FTP | other *** search
- // ======================
- // BATTLEZONE SCRAP GAUGE
- // ======================
-
- ConfigureInterface()
- {
- DefineColorGroup("SEGMENT")
- {
- // unselected, unhighlit, undisabled
- Foreground(0, 255, 255, 255, 255);
- Background(0, 127, 127, 127, 51);
- Gradient(0, 127, 127, 127, 51);
-
- // selected, unhighlit, undisabled
- Foreground(1, 255, 255, 255, 255);
- Background(1, 127, 127, 127, 51);
- Gradient(1, 127, 127, 127, 51);
-
- // unselected, highlit, undisabled
- Foreground(2, 255, 255, 255, 255);
- Background(2, 127, 127, 127, 51);
- Gradient(2, 127, 127, 127, 51);
-
- // selected, highlit, undisabled
- Foreground(3, 255, 255, 255, 255);
- Background(3, 127, 127, 127, 51);
- Gradient(3, 127, 127, 127, 51);
- }
-
- DefineColorGroup("SCRAP")
- {
- // unselected, unhighlit, undisabled
- Foreground(0, 153, 153, 153, 255);
- Background(0, 0, 0, 0, 0);
- Gradient(0, 0, 0, 0, 0);
-
- // selected, unhighlit, undisabled
- Foreground(1, 153, 153, 153, 255);
- Background(1, 0, 0, 0, 0);
- Gradient(1, 0, 0, 0, 0);
-
- // unselected, highlit, undisabled
- Foreground(2, 153, 153, 153, 255);
- Background(2, 0, 0, 0, 0);
- Gradient(2, 0, 0, 0, 0);
-
- // selected, highlit, undisabled
- Foreground(3, 153, 153, 153, 255);
- Background(3, 0, 0, 0, 0);
- Gradient(3, 0, 0, 0, 0);
- }
- }
-
- CreateControl("ScrapGauge", "WINDOW")
- {
- ColorGroup("BACKGROUND");
- Geometry("LEFT", "BOTTOM");
- Pos(8, -105);
- Size(16, 0);
- BorderSize(3);
-
- CreateControl("Segment1", "STATIC")
- {
- ColorGroup("SEGMENT");
- Geometry("BOTTOM");
- Pos(0, 0);
- Size(16, 0);
- }
-
- CreateControl("Segment2", "STATIC")
- {
- ColorGroup("SEGMENT");
- Geometry("BOTTOM");
- Pos(0, 0);
- Size(16, 0);
- }
-
- CreateControl("Segment3", "STATIC")
- {
- ColorGroup("SEGMENT");
- Geometry("BOTTOM");
- Pos(0, 0);
- Size(16, 0);
- }
-
- CreateControl("Segment4", "STATIC")
- {
- ColorGroup("SEGMENT");
- Geometry("BOTTOM");
- Pos(0, 0);
- Size(16, 0);
- }
-
- CreateControl("Segment5", "STATIC")
- {
- ColorGroup("SEGMENT");
- Geometry("BOTTOM");
- Pos(0, 0);
- Size(16, 0);
- }
-
- CreateControl("Segment6", "STATIC")
- {
- ColorGroup("SEGMENT");
- Geometry("BOTTOM");
- Pos(0, 0);
- Size(16, 0);
- }
-
- CreateControl("Gauge", "GAUGE")
- {
- ColorGroup("SCRAP");
- Geometry("BOTTOM");
- Orientation("VERTICAL");
- Pos(3, -10);
- Size(10, 0);
- UseVar("scrap.supply");
- }
-
- CreateControl("Count", "STATIC")
- {
- ColorGroup("SCRAP");
- Geometry("BOTTOM");
- Pos(0, 0);
- Size(16, 10);
- Style("TRANSPARENT");
- Font("TINY");
- JustifyText("HCENTRE");
- UseVar("scrap.supply");
- }
- }
-